package com_1;

import com.Caluctor;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

public class CaluctorTest {
    @Before
    public void   start(){
        System.out.println("开始");
    }
    @After
    public void  over(){
        System.out.println("结束");
    }

    @Test
    public  void testAdd(){
        Caluctor c=new Caluctor();
        int result = c.add(1, 3);
        System.out.println("运行");
        Assert.assertEquals(4,result);
    }

}
